<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh_TW" lang="zh_TW" dir="ltr">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
<title>登入 {#$cms_name#} CMS</title>
<link media="all" href="/cms/css/cms.min.css" type="text/css" rel="stylesheet"> 
<script language="JavaScript" src="/cms/js/cms.min.js"></script>
</head>
<script language="JavaScript">
function refresh_captcha(){
  $('#captcha_image').attr('src', '/captcha/image.php?'+Math.random());
}
function redirect_to_action(action_name){
  login = $('#login').val();
  redirect_url = $('#done').val();
  
  if(action_name == 'edit' || action_name == 'show_forget_password'){
    window.location.href='/cms/builder/login.php?action='+action_name+'&login='+login+'&.done='+redirect_url;
  }
  
}

</script>
<style>

input {height:30px;font-size:14pt;}

.loginbox { width:300px;  background: #eee; padding: 10px 10px 10px 30px;}
.label {padding-top: 12px;}
.input {padding-top: 3px; padding-bottom: 10px;}
</style>
	
<body bgcolor="#FFFFFF" text="#000000">

	<!--Variable login: {$login}-->
	<!--Variable status: {$status}-->
	<!--Variable landing: {$landing}-->
	
<form name="form1" method="post" action="/cms/builder/login.php">
<div align="center" style="padding-top:20px;">
<H1>{#$cms_name#} CMS </H1>
<div  class="loginbox" align="left">

  	<span class="pswarning">{#$status#}</span>

		<div class="label">使用者名稱：</div>
		<div class="input"><input type="text" name="login" id="login" value="{#$login#}" ></div>

  	<div class="label">密碼：</div>
    <div class="input"><input type="password" name="password"> </div>

  	
    
    
  	<div class="label">驗証碼：</div>
    <div class="input"><input type="text" name="captcha" style="vertical-align:middle;width:60px;"><img src="/cms/captcha/image.php" id="captcha_image" style="margin-left:5px;vertical-align:middle;border: 1px solid #eee;"></div>
<!--a onclick="refresh_captcha()" href="#" id="refresh_captcha">Refresh</a-->

<BR/>
  	<div style="padding-left:20px;float:left;">
    <input type="submit" name="Submit" value=" 登入 " >
    <input type="hidden" name="action" value="login">
    <input type="hidden" name=".done" id="done" value="{#$landing#}">
    
    </div>
    <div style="float:right">
      <a onclick="redirect_to_action('edit')" href="#" style="padding-left:20px;">修改密碼</a>
      <a onclick="redirect_to_action('show_forget_password')" href="#" style="padding-left:20px;">忘記密碼</a>
    </div>
    <div style="clear:both;"></div>

</div>
</div>	

</form>
<!--POSTRUNJS-->
</body>
</html>
